3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D supplies routines that you can use to set the components of a point or vector. You must already have allocated space for the point or vector before attempting to modify its contents.
You can use the Q3Point2D_Set function to set the coordinates of a two-dimensional point.
TQ3Point2D *Q3Point2D_Set (
TQ3Point2D *point2D,
float x,
float y);
You can use the Q3Param2D_Set function to set the components of a two-dimensional parametric point.
TQ3Param2D *Q3Param2D_Set (
TQ3Param2D *param2D,
float u,
float v);
You can use the Q3Point3D_Set function to set the coordinates of a three-dimensional point.
TQ3Point3D *Q3Point3D_Set (
TQ3Point3D *point3D,
float x,
float y,
float z);
You can use the Q3RationalPoint3D_Set function to set the coordinates of a three-dimensional rational point.
TQ3RationalPoint3D *Q3RationalPoint3D_Set (
TQ3RationalPoint3D *point3D,
float x,
float y,
float w);
You can use the Q3RationalPoint4D_Set function to set the coordinates of a four-dimensional rational point.
TQ3RationalPoint4D *Q3RationalPoint4D_Set (
TQ3RationalPoint4D *point4D,
float x,
float y,
float z,
float w);
You can use the Q3PolarPoint_Set function to set the components of a polar point.
TQ3PolarPoint *Q3PolarPoint_Set (
TQ3PolarPoint *polarPoint,
float r,
float theta);
You can use the Q3SphericalPoint_Set function to set the components of a spherical point.
TQ3SphericalPoint *Q3SphericalPoint_Set (
TQ3SphericalPoint *sphericalPoint,
float rho,
float theta,
float phi);
You can use the Q3Vector2D_Set function to set the scalar components of a two-dimensional vector.
TQ3Vector2D *Q3Vector2D_Set (
TQ3Vector2D *vector2D,
float x,
float y);
You can use the Q3Vector3D_Set function to set the scalar components of a three-dimensional vector.
TQ3Vector3D *Q3Vector3D_Set (
TQ3Vector3D *vector3D,
float x,
float y,
float z);
Previous | QD3D Book | Overview | Chapter Contents | Next |